package com.wagn.eduservice.controller;

import com.wagn.utils.R;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/eduservice/user")
@CrossOrigin
public class EduLogin {
    //login
    @PostMapping("login")
    public R login() {
        return R.ok().data("token", "123");
    }

    //info
    @GetMapping("info")
    public R info() {
        return R.ok()
                .data("roles", "admin")
                .data("name", "wang")
                .data("avatar", "http://pic.gucci-outlets-online.com/catch_down/20200427124434_631808.gif");
    }
}